package cn.sofwin.day0106.homework;

import java.util.Scanner;

public class Score {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        System.out.println("请输入成绩：");
        double score = sc.nextDouble();
        String level;
        if(90 <= score && score <=100){
            level = "A";
        }else if(80 <= score){
            level = "B";
        }else if(70 <= score){
            level = "C";
        }else if(60 <= score){
            level = "D";
        }else {
            level = "E";
        }

        System.out.println("等级为：" + level);

    }
}
